package allwe.testProxy;

import lombok.Data;

/**
 * 定义人 - 实现晚餐接口
 */
@Data
public class Person implements Dinner {

    private String name;

    public Person(String name) {
        this.name = name;
    }

    @Override
    public void eat(String foodName) {
        System.out.println(this.name + "吃" + foodName);
    }

    @Override
    public void drink(String juiceName) {
        System.out.println(this.name + "喝" + juiceName);
    }
}
